from selenium import webdriver
import time

driver = webdriver.Chrome()
driver.maximize_window()
driver.get('https://user.qzone.qq.com/3056009414')
js = '''
jQuery("a.qz_like_btn_v3[data-clicklog='like']").each(function(index,item){ console.log(item); jQuery(item).trigger('click');});jQuery(window).scroll(function(){ jQuery("a.qz_like_btn_v3[data-clicklog='like']").each(function(index,item){ jQuery(item).trigger('click'); }); return true;}); var t = 0;setInterval(function(){ jQuery('body,html').animate({'scrollTop':t+=2000},100); },2000)
'''
time.sleep(30)
driver.execute_script(js)